#ifndef PROJECTILE_H
#define PROJECTILE_H

#include "../ai.h"
#include "../world.h"

class World;

class Projectile: public AI{
public:
    Projectile(World *world, int speed, int size, Ogre::Real angle);
    virtual void move(float time);
    virtual void setPosition(Ogre::Vector3 pos);
    virtual void colide(AI *object);
    virtual void destroy();
    virtual int getType(){return TYPE_BULLET;}
    virtual Ogre::Vector3 getPosition(){return m_node->getPosition();}
    virtual bool colides(){return true;}
    int getDamage(){return m_damage;}
    void setDamage(int damage){m_damage = damage;}

    double m_angle;
    double m_x;
    double m_z;
    double m_radians;

protected:
    Ogre::SceneNode *m_node;
    World *m_world;
    int m_speed;
    int m_size;
    int m_damage;
};

#endif // PROJECTILE_H
